public class text_6 {
    public static void main(String[] args) {
        int count= 0;
        for (int i = 0; i <= 100; i++) {
            if(i%10==9){
                System.out.println(i);
                count++;
            }else{
                int stmp = i;
                stmp= stmp/10;
                if(stmp%10==9){
                    System.out.println(i);
                    count++;
                }
            }
        }
        System.out.println("出现9的个数是："+count);
    }
}

